package com.CMS.client;

import java.util.List;

import com.CMS.server.domain.Language;
import com.CMS.server.domain.User;
import com.google.gwt.user.client.rpc.RemoteService;
import com.google.gwt.user.client.rpc.RemoteServiceRelativePath;

@RemoteServiceRelativePath("user")
public interface UserService extends RemoteService {

	public User getUserHabilitado(String user,String pass) throws Exception;
	
	public List<User> fetch();
	
	public void deleteUser(long id);
	
	public void create(String alias, String pass, String mail, String description,long idRol);
	
	public void update(String alias, String pass, String mail, String description,String rol, boolean flagDelete, long id);
	
	public Language getLanguage(String alias);
	
	public void setLanguage(String alias, String value);
}
